package server.core.base;

import java.util.HashSet;
import java.util.Set;

public class Airport extends EntityBase{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8287667414273083022L;
	private Set<Flight> arrivalFlight=new HashSet<Flight>();
	private Set<Flight> departureFlight=new HashSet<Flight>();
	
	private String name;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	private String title;
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	private String city;
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	
	private String state;
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	
	public Airport(String name,String title,Terrain terrain) {
		this.setName(name);
		this.setTitle(title);
		this.setCity(terrain.getCity());
		this.setState(terrain.getState());
	}
	public String toString(){
		return   "id: "+getId()
				+", Name: "+getName()
				+", City: "+getCity()
				+", State: "+getState();
	}
	public Set<Flight> getArrivalFlight() {
		return arrivalFlight;
	}
	public void setArrivalFlight(Set<Flight> arrivalFlight) {
		this.arrivalFlight = arrivalFlight;
	}
	public Set<Flight> getDepartureFlight() {
		return departureFlight;
	}
	public void setDepartureFlight(Set<Flight> departureFlight) {
		this.departureFlight = departureFlight;
	}
	

}
